﻿create proc sp_xoaVT
@MaVT int
as
declare @dem as int
select @dem=count(*) from DanhMuc_VatTu where MaVT=@MaVT
if(@dem>0)
	begin
	delete DanhMuc_VatTu where MaVT=@MaVT
	select ErrCode=1
	end
else
	begin
	select ErrCode=0
	end